<?php if ($this->pageCount): ?>
<div class="paging">
    <ul>
 <!-- Previous page link -->
    <?php if (isset($this->previous)): ?>
        <li class="first"><a href="<?php echo $this->url(array('page' => $this->previous)); ?>">&laquo;</a></li>
    <?php else: ?>
        <li class="first"><a href="">&laquo;</a></li>
    <?php endif; ?>


    <!-- Numbered page links -->
    <?php foreach ($this->pagesInRange as $page): ?>
        <?php if ($page != $this->current): ?>
            <li><a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a></li>
        <?php else: ?>
          <li class="current"><?php echo $page; ?></li>
        <?php endif; ?>
    <?php endforeach; ?>
           <!-- Next page link -->
    <?php if (isset($this->next)): ?>
        <li class="last"><a href="<?php echo $this->url(array('page' => $this->next)); ?>">&raquo;</a></li>

    <?php else: ?>
         <li class="next"><a href="">&raquo;</a></li>
    <?php endif; ?>

    </ul>
</div> <!-- End paging -->
<?php endif; ?>